<?php

include ('../source/Connection.php');

$connection = new Connection(); //i created a new object

$connection->connectToDatabase(); // connected to the database

echo "<br />"; // putting a html break

$connection->selectDatabase();// closed connection

$result = mysql_query("select * from path");

while ($row = mysql_fetch_array($result, MYSQL_NUM)) {
    printf("ID: %s  Path: %s Link &s", $row[0], $row[1],$row[2]);
    printf("<a href=%s  Path: %s Link &s", $row[0], $row[1],$row[2]);
}

mysql_free_result($result);

echo "<br />";

$connection->closeConnection();
?>